package com.yihua.template.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.yihua.template.provider.service.ITestDubbo;

/**   
* @Title: TestController.java  
* @Description: TODO 
* @author luoyihua   
* @date 2016年5月19日 下午3:47:36   
*/
@RestController
public class TestController {
	
	@Autowired
	private ITestDubbo iTestDubbo;

	@RequestMapping(value="/consumer/test", method=RequestMethod.GET)
	@ResponseBody
	public String test() {
		return "hello consumer!" + iTestDubbo.sayHello("world!");
	}
}
